package cn.edu.ctbu.scoremg.controller;

import cn.edu.ctbu.scoremg.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/course")
public class CourseController {

    @Autowired
    private CourseService courseService;

    @GetMapping("/list")
    public String getList() {
        // 如果需要可以添加获取课程列表的逻辑
        // List<Course> courses = courseService.getAll();
        // model.addAttribute("courses", courses);
        return "/course/list";
    }
    @GetMapping("/list0")
    public String getList0() {
        // 如果需要可以添加获取课程列表的逻辑
        // List<Course> courses = courseService.getAll();
        // model.addAttribute("courses", courses);
        return "/course/list0";
        //此时是学生登录
    }
}